//引入路由组件
// import Home from '@/views/Home'
// import Login from '@/views/Login'
// import Search from '@/views/Search'
// import Register from '@/views/Register'
// import Detail from '@/views/Detail'
// import AddCartSuccess from '@/views/AddCartSuccess'
// import ShopCart from '@/views/ShopCart'
// import Trade from '@/views/Trade'
// import Pay from '@/views/Pay'
// import PaySuccess from '@/views/PaySuccess'
// import Center from '@/views/Center'
// //引入二级路由组件：
// import MyOrder from '@/views/Center/myOrder'
// import GroupOrder from '@/views/Center/groupOrder'

//下面采用了路由懒加载的方式进行引入


//路由配置信息
export default [
  {
    path:'/',
    component:()=>import('@/views/home'),
    meta:{
      show:true
    },
    retirect:'/home'
  },
  {
    name:'home',
    path:'/home',
    component:()=>import('@/views/home'),
    meta:{
      show:true
    },
  },
  {
    name:'article',
    path:'/article/:articleId',
    component:()=>import('@/views/article'),
    meta:{
      show:true
    },
  },
  {
    name:'login',
    path:'/login',
    component:()=>import('@/views/login'),
    meta:{
      show:true
    }
  },
  {
    name:'register',
    path:'/register',
    component:()=>import('@/views/register'),
    meta:{
      show:true
    }
  },
  {
    name:'search',
    path:'/search/:keyword?',
    component:()=>import('@/views/search'),
    meta:{
      show:true
    }
  },
  {
    name:'album',
    path:'/album/:albumId/:albumName',
    component:()=>import('@/views/album'),
    meta:{
      show:true
    },
    props: true,
  
  },
  {
    name:'barrage',
    path:'/barrage',
    component:()=>import('@/views/barrage'),
    meta:{
      show:true
    }
  },
  // {
  //   name:'landspace',
  //   path:'/landspace',
  //   component:()=>import('@/views/album/landspace'),
  //   meta:{
  //     show:true
  //   }
  // },
  {
    name:'categotry',
    path:'/category',
    component:()=>import('@/views/article/category'),
    meta:{
      show:true
    }
  },
  {
    name:'categoryDetails',
    path:'/category/:categoryId/:categoryName?',
    component:()=>import('@/views/article/category/categoryDetails'),
    meta:{
      show:true
    },
  },
  {
    name:'about',
    path:'/about',
    component:()=>import('@/views/about'),
    meta:{
      show:true
    }
  },
  {
    name:'archive',
    path:'/archive',
    component:()=>import('@/views/article/archive'),
    meta:{
      show:true
    }
  },
  {
    name:'tag',
    path:'/tag',
    component:()=>import('@/views/article/tag'),
    meta:{
      show:true
    },
  },
  {
    name:'tagDetails',
    path:'/tag/:tagId/:tagName?',
    component:()=>import('@/views/article/tag/tagDetails'),
    meta:{
      show:true
    },
  },
  {
    name:'password',
    path:'/updatePassword',
    component:()=>import('@/views/password'),
    meta:{
      show:true
    }
  },
  {
    name:'link',
    path:'/link',
    component:()=>import('@/views/link'),
    meta:{
      show:true
    }
  }
]
